package chaowan.Service;

import chaowan.pojo.OrderDetail;
import java.util.List;

public interface OrderDetailService {
    List<OrderDetail> getAllDetails();
    OrderDetail getDetailById(Long detailId);
    int save(OrderDetail orderDetail);
    int update(OrderDetail orderDetail);
    int deleteById(Long detailId);
    List<OrderDetail> getDetailsByOrderId(Long orderId);

    // 新增分页查询方法
    List<OrderDetail> getDetailsByOrderId(Long orderId, int page, int size);

    // 获取指定订单的总记录数
    int getTotalCountByOrderId(Long orderId);
}